package com.lms.thread.demo3;


import com.lms.thread.demo2.SynchronizedTest;

/**
 * @Author: 李孟帅
 * @CreateTime: 2020-01-19 10:05
 * @Description: ${Description}
 */
public class Task extends Thread {
    private LockTest lockTest;
    public Task(LockTest lockTest){
        this.lockTest=lockTest;
    }

    @Override
    public void run() {
        lockTest.lock();

    }
}
